/*
	This program is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 2 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU Library General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program; if not, write to the Free Software
	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
*/

#ifndef CONFIGURATIONDLGIMPL_H
#define CONFIGURATIONDLGIMPL_H
//
#include "ui_configurationdlg.h"

#include "configurationmodel.h"
//
class ConfigurationDlgImpl : public QDialog, public Ui::ConfigurationDlg
{
Q_OBJECT
public:
	ConfigurationDlgImpl( QWidget * parent = 0, Qt::WFlags f = 0 );
	
	void setConfigurationManager(ConfigurationManager *confMgr);
	
private slots:
	void on_buttonBox_accepted();
	void on_ckCloseToTray_clicked();
	void on_ckUseTrayIcon_clicked();
	void on_tbDefaultFontColor_clicked();
	void on_tbEditorColor_clicked();
	void on_tbTreeColor_clicked();

private:
	void drawColor(QToolButton *button, QColor color);
	void fillComboSize();
	void updateConfigurationManager();
	
	ConfigurationManager *m_confManager;
	
	QColor m_currentDefaultFontColor;
	QColor m_currentEditorColor;
	QColor m_currentTreeColor;
};
#endif







